package gro.ecorrdata.edata.util.token;

public class TokenModel {
	
	private Integer userId;
	private String token;
	private Integer loginNum;
	private String lastIp;
	private String lastTime;
	private String username;
	private String rolename;

	public TokenModel(Integer userId, String token) {
		this.userId = userId;
		this.token = token;
	}

	public TokenModel(Integer userId, String token, Integer loginNum,
		String lastIp, String lastTime, String username, String rolename) {
		this.userId = userId;
		this.token = token;
		this.loginNum = loginNum;
		this.lastIp = lastIp;
		this.lastTime = lastTime;
		this.username = username;
		this.rolename = rolename;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Integer getLoginNum() {
		return loginNum;
	}

	public void setLoginNum(Integer loginNum) {
		this.loginNum = loginNum;
	}
	
	public String getLastIp() {
		return lastIp;
	}

	public void setLastIp(String lastIp) {
		this.lastIp = lastIp;
	}

	public String getLastTime() {
		return lastTime;
	}

	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}

	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

    @Override
    public String toString() {
        return "TokenModel [userId=" + userId + ", token=" + token + "]";
    }
	
	
}
